﻿@model Liquidaciones.Models.LogOnModel
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    @* (borrar si se quiere)con esto pone el icono en la tab*@
    <link rel="icon" type="image/png" href="http://aux.iconpedia.net/uploads/227768599.png" />
    <link href="@Url.Content("~/Content/Bootstrap/css/bootstrap.css")" rel="stylesheet" type="text/css" />
    @*<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />*@
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    @{if(User.IsInRole("Administrador"))
        {<style type="text/css">
            body {
              font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
              font-size: 14px;
              line-height: 1.428571429;
              color: #333333;
              background-image:url('../../Content/Fondos/Fondo_admin.jpg');
              background-repeat:no-repeat;
              background-size:cover;
              background-position:top;              
            }
        </style>
        }
     }
     @{if(User.IsInRole("Liquidador"))
        {<style type="text/css">
            body {
              font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
              font-size: 14px;
              line-height: 1.428571429;
              color: #333333;
              background-image:url('../../Content/Fondos/Fondo_liquidador.jpg');
              background-repeat:no-repeat;
              background-size:cover;
              background-position:top;              
            }
        </style>
        }
     }
     @{if(User.IsInRole("Empleado"))
        {<style type="text/css">
            body {
              font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
              font-size: 14px;
              line-height: 1.428571429;
              color: #333333;
              background-image:url('../../Content/Fondos/Fondo_empleado.jpg');
              background-repeat:no-repeat;
              background-size:cover;
              background-position:top;              
            }
        </style>
        }
     }
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>Liquidaciones</h1>
            </div>
    <div class="navbar navbar-inverse navbar-default">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            @if (User.IsInRole("Administrador"))
            {    
                <p class="navbar-brand" href="#">Administrador</p>
                <li class="active"><a href="@Url.Action("Index", "Administrador")">Home</a></li>               
                <li><a href="@Url.Action("Ver_Empleados", "Administrador")">Empleados</a></li>
                <li><a href="@Url.Action("Ver_Liquidadores", "Administrador")">Liquidadores</a></li>
            }
            @if (User.IsInRole("Liquidador"))
            { 
                <p class="navbar-brand" href="#">Liquidador</p>
                <li class="active"><a href="@Url.Action("Index", "Liquidador")">Home</a></li>
            }
            @if (User.IsInRole("Empleado"))
            { 
                <p class="navbar-brand" href="#">Empleado</p>
                <li class="active"><a href="@Url.Action("Index", "Empleado")">Home</a></li>
            }
            <li><a href="@Url.Action("About", "Home")">About</a></li>
          </ul>
          @if (Request.IsAuthenticated)
          {
              <ul class="nav navbar-nav navbar-right">
                <li class="active">
                <p class="navbar-text pull-right"><strong>@User.Identity.Name</strong></p>
                </li>
                <li>@Html.ActionLink("Log Off", "LogOff", "Account")</li>
              </ul>           
          }
          @if (!Request.IsAuthenticated)
          {
          <form class="navbar-form navbar-right" action="@Url.Action("LogOn", "Account")">
            <div class="form-group">
              @Html.TextBoxFor(m => m.UserName, new { @placeholder = "Usuario", @class = "form-control" })
            </div>
            <div class="form-group">
               @Html.PasswordFor(m => m.Password, new { @placeholder = "Contraseña", @class = "form-control" })
            </div>
            <button type="submit" class="btn btn-success" value="Log On">Ingresar</button>
          </form>
          }
        </div><!--/.nav-collapse -->
      </div>          
        </header>
        <section id="main">
            @RenderBody()
        </section>
    </div>
</body>
</html>
